﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace BDSim
{
    /// <summary>
    /// EphemerisErrorConfigWnd.xaml 的交互逻辑
    /// </summary>
    public partial class EphemerisErrorConfigWnd : Window
    {
        public EphemerisErrorConfigWnd()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
        }

        private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            MEOPanel.Visibility = System.Windows.Visibility.Collapsed;
            IGSOPanel.Visibility = System.Windows.Visibility.Collapsed;
            GEOPanel.Visibility = System.Windows.Visibility.Collapsed;
            LEOPanel.Visibility = System.Windows.Visibility.Collapsed;
            HEOPanel.Visibility = System.Windows.Visibility.Collapsed;
            switch ((sender as ComboBox).SelectedIndex)
            {
                case 0:
                    MEOPanel.Visibility = System.Windows.Visibility.Visible;
                    break;
                case 1:
                    IGSOPanel.Visibility = System.Windows.Visibility.Visible;
                    break;
                case 2:
                    GEOPanel.Visibility = System.Windows.Visibility.Visible;
                    break;
                case 3:
                    LEOPanel.Visibility = System.Windows.Visibility.Visible;
                    break;
                case 4:
                    HEOPanel.Visibility = System.Windows.Visibility.Visible;
                    break;
                default:
                    break;
            }
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            cbxSatSelect.SelectedIndex = 0;
        }
    }
}
